<?php
$xml = simplexml_load_file("config.xml");

echo "<html><body>";

var_dump($xml->attributes);
foreach($xml->element as $element) print_r($element);

echo "</body></html>";